package org.ykh.srb.pojo;

/**
 * @author ykh
 */
public class Location {
    private String longitude;
    private String latitude;

    public String getLongitude() {
        return longitude;
    }

    public void setLongitude(String longitude) {
        this.longitude = longitude;
    }

    public String getLatitude() {
        return latitude;
    }

    public void setLatitude(String latitude) {
        this.latitude = latitude;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (!(o instanceof Location)) return false;

        Location location = (Location) o;

        if (!getLongitude().equals(location.getLongitude())) return false;
        return getLatitude().equals(location.getLatitude());
    }

    @Override
    public int hashCode() {
        int result = getLongitude().hashCode();
        result = 31 * result + getLatitude().hashCode();
        return result;
    }
}
